﻿<MudPopoverProvider />

<MudSelect @bind-Value="_value" PopoverClass="select-popover-class" @onfocus="Focused" OnBlur="Blurred">
    <MudSelectItem Value="@("1")"/>
    <MudSelectItem Value="@("2")"/>
    <MudSelectItem Value="@("3")"/>
    <MudSelectItem Value="@("4")" Disabled="true"/>
</MudSelect>

<MudSwitch @bind-Value="@_focused" />

@code {
	public static string __description__ = "Click should open the Menu and selecting a value should update the bindable value.";

	private string? _value = null;
	private bool _focused;

	private void Focused()
	{
		_focused = true;
	}

	private void Blurred()
	{
		_focused = false;
	}
}
